package com.yoga.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * yoga_myorder
 * @author 
 */
public class YogaMyorder implements Serializable {
    private String oid;

    private String paymentuid;

    private String gatheruid;

    private BigDecimal paymoney;

    private Date createtime;

    private Date paymenttime;

    private Date dealtime;

    private Integer urlid;

    private String tradingkey;

    private Integer states;

    private String isdelete;

    private static final long serialVersionUID = 1L;

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public String getPaymentuid() {
        return paymentuid;
    }

    public void setPaymentuid(String paymentuid) {
        this.paymentuid = paymentuid;
    }

    public String getGatheruid() {
        return gatheruid;
    }

    public void setGatheruid(String gatheruid) {
        this.gatheruid = gatheruid;
    }

    public BigDecimal getPaymoney() {
        return paymoney;
    }

    public void setPaymoney(BigDecimal paymoney) {
        this.paymoney = paymoney;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getPaymenttime() {
        return paymenttime;
    }

    public void setPaymenttime(Date paymenttime) {
        this.paymenttime = paymenttime;
    }

    public Date getDealtime() {
        return dealtime;
    }

    public void setDealtime(Date dealtime) {
        this.dealtime = dealtime;
    }

    public Integer getUrlid() {
        return urlid;
    }

    public void setUrlid(Integer urlid) {
        this.urlid = urlid;
    }

    public String getTradingkey() {
        return tradingkey;
    }

    public void setTradingkey(String tradingkey) {
        this.tradingkey = tradingkey;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public String getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(String isdelete) {
        this.isdelete = isdelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        YogaMyorder other = (YogaMyorder) that;
        return (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getPaymentuid() == null ? other.getPaymentuid() == null : this.getPaymentuid().equals(other.getPaymentuid()))
            && (this.getGatheruid() == null ? other.getGatheruid() == null : this.getGatheruid().equals(other.getGatheruid()))
            && (this.getPaymoney() == null ? other.getPaymoney() == null : this.getPaymoney().equals(other.getPaymoney()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getPaymenttime() == null ? other.getPaymenttime() == null : this.getPaymenttime().equals(other.getPaymenttime()))
            && (this.getDealtime() == null ? other.getDealtime() == null : this.getDealtime().equals(other.getDealtime()))
            && (this.getUrlid() == null ? other.getUrlid() == null : this.getUrlid().equals(other.getUrlid()))
            && (this.getTradingkey() == null ? other.getTradingkey() == null : this.getTradingkey().equals(other.getTradingkey()))
            && (this.getStates() == null ? other.getStates() == null : this.getStates().equals(other.getStates()))
            && (this.getIsdelete() == null ? other.getIsdelete() == null : this.getIsdelete().equals(other.getIsdelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getPaymentuid() == null) ? 0 : getPaymentuid().hashCode());
        result = prime * result + ((getGatheruid() == null) ? 0 : getGatheruid().hashCode());
        result = prime * result + ((getPaymoney() == null) ? 0 : getPaymoney().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getPaymenttime() == null) ? 0 : getPaymenttime().hashCode());
        result = prime * result + ((getDealtime() == null) ? 0 : getDealtime().hashCode());
        result = prime * result + ((getUrlid() == null) ? 0 : getUrlid().hashCode());
        result = prime * result + ((getTradingkey() == null) ? 0 : getTradingkey().hashCode());
        result = prime * result + ((getStates() == null) ? 0 : getStates().hashCode());
        result = prime * result + ((getIsdelete() == null) ? 0 : getIsdelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", oid=").append(oid);
        sb.append(", paymentuid=").append(paymentuid);
        sb.append(", gatheruid=").append(gatheruid);
        sb.append(", paymoney=").append(paymoney);
        sb.append(", createtime=").append(createtime);
        sb.append(", paymenttime=").append(paymenttime);
        sb.append(", dealtime=").append(dealtime);
        sb.append(", urlid=").append(urlid);
        sb.append(", tradingkey=").append(tradingkey);
        sb.append(", states=").append(states);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}